import axios from '../util/http'
//获取
export function getTihuo(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/get-tihuo`,
		data: query
	})
}

//获取全部
export function getOrder(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/get-tihuo-all`,
		data: query
	})
}
//提货
export function addTihuo(data) {
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/one-tihuo`,
		data
	})
}
//提货
export function tihuo(data) {
	return axios({
		method:'post',
		url:`/wechat/driver/tihuo`,
		data
	})
}


// 送货 网络订单 司机端 
export function getprice(query) {
	return axios({
		method:'get',
		url:`/wechat/driver/getprice`,
		data: query
	})
}

//  司机端  车辆下拉框
export function getCarInfo(query) {
	return axios({
		method:'get',
		url:`/wechat/driver/getCarInfo`,
		data: query
	})
}

//  司机端  查看网络订单详情
export function getId(query) {
	return axios({
		method:'get',
		url:`/wechat/driver/get-id`,
		data: query
	})
}

//  司机端  新增派车单
export function addCar(query) {
	return axios({
		method:'get',
		url:`/wechat/driver/addCar`,
		data: query
	})
}

//  司机端  签收
export function getSign(query) {
	return axios({
		method:'get',
		url:`/wechat/driver/get-sign`,
		data: query
	})
}

//  司机端  签收
export function sign(data) {
	return axios({
		method:'post',
		url:`/wechat/driver/sign`,
		data: data
	})
}

//  司机端  获取网络订单详情
export function duopm(data) {
	return axios({
		method:'get',
		url:`/wechat/driver/duopm`,
		data: data
	})
}

//  司机端  加入品名
export function addDpm(data) {
	return axios({
		method:'post',
		url:`/wechat/driver/addDpm`,
		data: data
	})
}
//  司机端  剔除品名
export function delDpm(data) {
	return axios({
		method:'get',
		url:`/wechat/driver/delDpm`,
		data: data
	})
}

//  司机端  修改详情
export function updateNetwork(data) {
	return axios({
		method:'post',
		url:`/wechat/driver/updateNetwork`,
		data: data
	})
}

